<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>
  <div id="app">
    <label for="hobby" v-for="item in list"><input name="hobby" type="checkbox" :value="item"
        v-model="hobbyList">{{item}}</label>

    <ul>
      <li v-for="item in hobbyList">{{item}}</li>
    </ul>
  </div>
  <script>
    new Vue({
      el: '#app',
      data: {
        list: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
        hobbyList: []
      }
    })
  </script>
</body>

</html>